<?php use_helper('JavascriptBase');?>
<div id="breadcrumbs"><?php echo $breadcrumb?></div>
    <div id="product_wrap">
        <?php  foreach($pager->getResults() as $product):?>
        <div class="product"><img src="/uploads/images/tn_<?php echo $product->getFilename()?>" alt="Semra mode <?php echo $product->getName()?>/>
                                  <div id="<?php echo $product->getId();?>_details" class="product_details" style="display:none;">
                                      <?php echo $product->getName();?>
                                      <?php echo link_to('Details', '@product?id='.$product->getId());?>
            </div>
          
        <?php endforeach;?>
          <script type="text/javascript">
            $(document).ready(function(){
                Details();
            });
            </script>
    </div>
<?php if($pager->haveToPaginate()):?>
    <div id="product_paginator" class="pagination">
        <?php echo link_to_function('Vorige',' paginate(\''.$category->getName().'\',\''.$pager->getPreviousPage().'\')', array('class' => 'pagination_link'));?>

            <?php foreach ($pager->getLinks() as $page): ?>
      <?php if ($page == $pager->getPage()): ?>
      <span class="active_page" ><?php echo $page ?></span>
      <?php else: ?>
<?php echo link_to_function($page,' paginate(\''.$category->getName().'\',\''.$page.'\')', array('class' => 'pagination_link'));?>
      <?php endif; ?>
    <?php endforeach; ?>
<?php echo link_to_function('Volgende',' paginate(\''.$category->getName().'\',\''.$pager->getNextPage().'\')', array('class' => 'pagination_link'));?>

    </div>
<?php endif;?>